<html>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>编辑用户</title>
	<head>
    <link href="resources/styles/cms.css" rel="stylesheet" type="text/css">
    <style type="text/css">
        body {
            background-image: url(resources/images/tab_shadow.gif);
            background-attachment: fixed;
            background-repeat: repeat-x;
        }
    </style>
	<script language="JavaScript">
		function reg(){
			
		}
	</script>
	</head>
	<body>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="search_box">
        <tr>
            <td class="search_box">
                &nbsp;
            </td>
        </tr>
    </table>
    <form action="<{$domain}>?act=admin.update" method="post" name="regform" onSubmit="return reg();">
        <TABLE width="100%" border=0 align="center" cellPadding=2 cellSpacing=1 class=color-tabletrim>
            <TR>
                <TD height="20" class="j">
                    <img src="resources/images/file.gif" width="14" height="14" border="0" align="absmiddle" />&nbsp;&nbsp;管理员更新
                </TD>
            </TR>
            <tr class="e">
                <td nowrap="nowrap" height="20">
                    <table width="100%" border="0" cellpadding="2" cellspacing="0">
                        <tr>
                            <td align="right" width="118" class="c_lick">用户：</td>
                            <td class="c_lick" bgColor="#f8f8f8">
                                <input name="user_name" type="text" class="locked" value="<{$out.userinfo.user_name}>" style="width:150px" readonly>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" width="118" class="c_lick">密码：</td>
                            <td class="c_lick" bgColor="#f8f8f8">
                                <input name="password" type="password" id="password" style="width:150px" maxlength="21">(如果不修改请不要填写)
                            </td>
                        </tr>
						<tr>
                        	<td align="right" width="91" class="c_lick">超级管理员：</td>
                            <td class="c_lick" bgColor="#f8f8f8">
                            	<input name="is_admin" type="checkbox" value="1" <{if $out.userinfo.is_admin eq 1}>checked<{/if}> />
                            </td>
                        </tr>
						<tr>
                                <td align="right" width="91" class="c_lick">部门：</td>
                                <td class="c_lick" bgColor="#f8f8f8">
                                	<select name="role">
										<option value="0">请选择部门</option>
										<{section name=role loop=$out.role_data}>
										<option value="<{$out.role_data[role].role_id}>" <{if $out.role_data[role].checked eq 1}>selected="selected"<{/if}>><{$out.role_data[role].role_name}></option>
										<{/section}>
                                	</select>
                                </td>
                            </tr>
						
                        <tr>
                            <td align="right" valign="top" width="118" class="c_lick">权限：</td>
                            <td class="c_lick" bgColor="#f8f8f8">
                            </td>
                        </tr>
                        <tr>
                            <td class="c_lick">
                                &nbsp;
                            </td>
                            <td class="c_lick" bgColor="#f8f8f8">
                                <{foreach from=$out.data item=d}>
                                &nbsp;&nbsp;<b><{$d.name}></b>
                                <br>
                                <{foreach from=$d.menus item=v}>
                                &nbsp;&nbsp;&nbsp;&nbsp;<input id="priv_<{$v.id}>" name="priv[]" type="checkbox" value="<{$v.id}>"<{$v.check}> /><{$v.name}>
                                <br/>
                                <{/foreach}>
								<{/foreach}>
                            </td>
                        </tr>
                        <tr>
                            <td class="c_lick">
                                <input type="hidden" name="user_id" value="<{$out.userinfo.user_id}>"/><input type=hidden name='page' value='<{$out.page}>'>
                            </td>
                            <td class="c_lick" bgColor="#f8f8f8">
                                <input class=button type="submit" name="Submit" value="保存">
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
    </body>
</html>